package com.lhd.creational.builder;

/**
 * @Author: liuhd
 * @Date: 2024/10/28 14:33
 * @Description: 指导者
 */
public class Director {
    private Builder builder;
    public Director(Builder builder){
        this.builder = builder;
    }
    public Bike constructBike(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
